package com.jr9z.jrjz.service;

import com.jr9z.jrjz.entity.ClassicCase;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author:Mrzhang
 * @Description:经典案例service
 * @Date:2019.03.25 21:39
 **/

public interface ClassicCaseService {
    int deleteByPrimaryKey(Integer classicId);

    int insert(ClassicCase record);

    /**
     * 添加记录
     * @param record
     * @return
     */
    int insertSelective(ClassicCase record);

    ClassicCase selectByPrimaryKey(Integer classicId);

    int updateByPrimaryKeySelective(ClassicCase record);

    int updateByPrimaryKeyWithBLOBs(ClassicCase record);

    int updateByPrimaryKey(ClassicCase record);

    /**
     * 上移
     * @param classicId
     * @return
     */
    void moveUp(Integer classicId);

    /**
     * 下移
     * @param classicId
     */
    void moveDown(Integer classicId);

    /**
     * 获取经典案例列表
     * @return
     */
    List<ClassicCase> getClassicList();

    /**
     * 获取经典案例的总数
     * @return
     */
    Long getClassicCount();


    ClassicCase getPrev(Integer classicId);


    ClassicCase getNext(Integer classicId);

}
